package com.sky.mapper;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    void save(ShoppingCart shoppingCart);

    void saveBatch(@Param("shoppingCartList") List<ShoppingCart> shoppingCartList);

    List<ShoppingCart> list(Long userId);

    ShoppingCart queryShoppringCart(ShoppingCart shoppingCart);

    void update(ShoppingCart shoppingCart);

    void delete(ShoppingCart shoppingCart);
}
